package com.zefor.pojo;

import java.util.Date;

/*
* 当前厂房环境信息
* */
public class EnvironmentPojo {

    //二氧化碳量
    private Integer carbondioxide;

    //湿度
    private Double humidity;

    //温度
    private Double temperature;

    //光照量
    private Integer illumination;

    //更新时间
    private Date timestamp;


    public Integer getCarbondioxide() {
        return carbondioxide;
    }

    public void setCarbondioxide(Integer carbondioxide) {
        this.carbondioxide = carbondioxide;
    }

    public Double getHumidity() {
        return humidity;
    }

    public void setHumidity(Double humidity) {
        this.humidity = humidity;
    }

    public Double getTemperature() {
        return temperature;
    }

    public void setTemperature(Double temperature) {
        this.temperature = temperature;
    }

    public Date getTimestamp() {
        return timestamp;
    }

    public void setTimestamp(Double timestamp) {
        this.timestamp = new Date((long) (timestamp*1000));
    }

    public Integer getIllumination() {
        return illumination;
    }

    public void setIllumination(Integer illumination) {
        this.illumination = illumination;
    }


}
